import Layout from "@/layout";

/** 
 * 财务模块路由配置
 * 路径: /finance
 * 包含功能: 佣金计算、应付单、应收单
 */
export default {
    path: "/finance",
    component: Layout,
    redirect: "/finance/commissionCalculation",
    alwaysShow: true,
    name: "finance",
    meta: {
        title: "财务管理", 
        icon: "list" // 建议使用财务相关图标
    },
    children: [
        // 佣金计算
        {
            path: "/finance/commissionCalculation",
            component: () => import("@/views/finance/commissionCalculation.vue"),
            name: "commissionCalculation",
            meta: { 
                title: "佣金计算", 
                icon: "list" 
            }
        },
        // 应付单
        {
            path: "/finance/payableFrom",
            component: () => import("@/views/finance/payableFrom.vue"),
            name: "payableFrom",
            meta: { 
                title: "应付单", 
                icon: "list" 
            }
        },
        // 应收单
        {
            path: "/finance/receivableOrder",
            component: () => import("@/views/finance/receivableOrder.vue"),
            name: "receivableOrder",
            meta: { 
                title: "应收单", 
                icon: "list" 
            }
        }
    ]
};